package cn.springcloud.book.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @description : 配置信息
 */
@Component
//@ConfigurationProperties(prefix = "test")
@RefreshScope//手动刷新
public class ConfigInfoProperties {

    @Value("${test.config}")
    private String config;

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }
}
